<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>my奔跑的大熊</title>
</head>
<style>
  body{
    background: #ccc;
  }
  div{
    position: absolute;
    width: 200px;
    height: 100px;
    background: url(img/bear.png) no-repeat;
    animation: bear 1s steps(8) infinite,
               move 3s forwards;
  }
  @keyframes bear {
    from {background-position: 0 0;}
    to{background-position: -1600px 0;}
  }
  @keyframes move {
    from{left: 0%;}
    to{left: 50%;transform: translateX(-50%);}
  }
</style>
<body>
  <div></div>
  <audio id="bear_sound" src="./audio/熊发怒的吼声_爱给网_aigei_com.mp3" controls loop></audio>
  
</body>
</html>